const moment = require('moment')

exports.getYearMonthList = function (start) {
  let list = []
  const len = moment().diff(moment(start), 'month') + 1
  for (let i = 0; i < len; i++) {
    list.push(moment(start).add(i, 'month').format('YYYY-MM'))
  }
  return list
}
